/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.suarte.webapp.action;

import com.suarte.core.UnitMeasure;
import java.io.Serializable;
import java.util.List;
import org.appfuse.service.GenericManager;

/**
 *
 * @author giovanella
 */
public class UnitMeasureList extends BasePage implements Serializable {
    private GenericManager<UnitMeasure, Long> unitMeasureManager;

    public UnitMeasureList() {
        setSortColumn("id"); // sets the default sort column
    }

    public void setUnitMeasureManager(GenericManager<UnitMeasure, Long> unitMeasureManager) {
        this.unitMeasureManager = unitMeasureManager;
    }
    
    public List getUnitMeasures() {
        return sort(unitMeasureManager.getAll());
    }
}
